<html>

<head>

    <meta charset="utf-8"/>
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=0.5, maximum-scale=2.0, user-scalable=yes"/>
    <title>Open Link</title>

</head>

<body>
<script>
    function f2(url) {
    var links = document.getElementsByClassName('a_intent')[0];
      links.setAttribute("href",url);
      window.java_obj.jsMethod(links.getAttribute("href"));
<!--      window.java_obj.jsMethod(url);-->
}


</script>
<a href=""
   class="a_intent">
    Open Link </a>

<br/>

</body>

</html>